cmake_minimum_required(VERSION 3.10)

#set(CMAKE_CXX_STANDARD 14)

include_directories(.)

include_directories(../message)
include_directories(../../common/msg)

set(SOURCE_FILES
		cm_broadcast_function.cpp
		cm_broadcast_function.h
		cm_discovery_service.cpp
		cm_discovery_service.h
)

add_library(cm-discovery-service
		${SOURCE_FILES}
		)

add_executable(cm_discovery_client_one
		cm_discovery_client_one.cpp
		${SOURCE_FILES}
)

target_link_libraries(cm_discovery_client_one
		jkmessage
		net
		third_jsoncpp
		utils
		jkfuncs
		pthread
)

add_executable(cm_discovery_client_two
		cm_discovery_client_two.cpp
		${SOURCE_FILES}
)

target_link_libraries(cm_discovery_client_two
		jkmessage
		net
		third_jsoncpp
		utils
		jkfuncs
		pthread
)
